package di

import android.content.Context
import network.AuthInterceptor
import network.Retrofit
import org.koin.android.ext.koin.androidContext
import org.koin.core.context.startKoin
import org.koin.dsl.module

fun startDI(context: Context){
    val token = "f5b2adfe0b9f989f85fe90fffef09921"
    val myModule= module {
        single { AuthInterceptor(token) }
        single { Retrofit().getRetrofit(get()) }
    }
    startKoin {
        androidContext(context)
        modules(myModule)
    }

}